package com.nineshadow.games.Enum;

import lombok.Getter;

@Getter
public enum GameTypeEnum {
    XXL(0,"消消乐","210001","FhLo57UCiq9Jdac5AN"),
    MCDZZ(1,"萌宠大作战","210002","0VXhAytE0lztq10Jlf")
    ;

    GameTypeEnum(int type, String msg,String appId,String appSecret) {
        this.type = type;
        this.msg = msg;
        this.appId = appId;
        this.appSecret = appSecret;
    }

    private int type;

    private String msg;

    private String appId;

    private String appSecret;

    public static GameTypeEnum getByType(int type) {
        for (GameTypeEnum anEnum : values()) {
            if (anEnum.type== type) {
                return anEnum;
            }
        }
        return null;
    }

    public int getType() {
        return type;
    }

    public String getMsg() {
        return msg;
    }

    public String getAppId() {
        return appId;
    }

    public String getAppSecret() {
        return appSecret;
    }
}
